<link rel="stylesheet" media="screen" type="text/css" title="fiche_Css" href="_css/NewCliF.css" />
<div id="main_title">Emploi du temps</div>
<div id="cadre">
<form method="post" action="<?php echo ABS_PATH.ROOT; ?>?page=Transporteur/Calendar&fct=Transporteur/Calendar" id="formu">
  <label for="id_client">Client :</label>
  <select name="id_client" onchange="submit()">
    <option value="non">< Unknow ></option>
   <?php if(isset($cmd)) {foreach($cmd AS $cl) { ?>
    <option value="<?php echo $cl['GLN_Client']; ?>"
	<?php if (isset($_POST['id_client']) && $_POST['id_client'] == $cl['GLN_Client']) echo "selected"; ?>>
	<?php echo $cl['GLN_Client']; ?></option>
	<?php } } ?> 	
  </select>
</form>
<form method="post" action="<?php echo ABS_PATH.ROOT; ?>?page=Transporteur/Calendar&fct=Transporteur/Calendar" id="formu">
  <label for="id_camion">Camion :</label>
  <select name="id_camion" onchange="submit()">
    <option value="non">< Unknow ></option>
   <?php if(isset($camion)) { foreach($camion AS $cam) { ?>
    <option value="<?php echo $cam['Matricule']; ?>"
	<?php if (isset($_POST['id_camion']) && $_POST['id_camion'] == $cam['Matricule']) echo "selected"; ?>>
	<?php echo $cam['Matricule']; ?></option>
	<?php } } ?> 	
  </select>
</form>
<br />
<?php if (isset($_POST['id_client'])) { ?>
 <iframe src="_tpl/Transporteur/edt.php?id_client=<?php echo $_POST['id_client']; ?>" name="Calendar" height="600" width="750"></iframe>
<?php } else if (isset($_POST['id_camion'])) { ?>
 <iframe src="_tpl/Transporteur/edt.php?id_camion=<?php echo $_POST['id_camion']; ?>" name="Calendar" height="600" width="750"></iframe>
<?php } ?>
 </div>


